﻿using System;

namespace MessagePack.Decoders
{
	// Token: 0x020000F8 RID: 248
	internal class ReadNextExt32 : IReadNextDecoder
	{
		// Token: 0x06000387 RID: 903 RVA: 0x0000C97F File Offset: 0x0000AD7F
		private ReadNextExt32()
		{
		}

		// Token: 0x06000388 RID: 904 RVA: 0x0000C988 File Offset: 0x0000AD88
		public int Read(byte[] bytes, int offset)
		{
			uint num = (uint)((int)bytes[offset + 1] << 24 | (int)bytes[offset + 2] << 16 | (int)bytes[offset + 3] << 8 | (int)bytes[offset + 4]);
			return (int)(num + 6U);
		}

		// Token: 0x04000111 RID: 273
		internal static readonly IReadNextDecoder Instance = new ReadNextExt32();
	}
}
